/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sparrsonat;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

/**
 *
 * @author leofidjeland
 */
public class Spärrsonat extends Application {

    /**
     * @param args the command line arguments
     */
    
    public TimeMachine timeMachine;
    public NodeSimulator nodes;
    public SoundMachine soundMachine;
    
    public static void main(String[] args) {
        launch(args);
    }
    
    @Override
    public void start(Stage primaryStage) {
        soundMachine = new SoundMachine();
        timeMachine = new TimeMachine(soundMachine);
        timeMachine.start();
        nodes = new NodeSimulator(timeMachine);
        nodes.start();
        
        primaryStage.setTitle("Spärrsonat");
        
        StackPane root = new StackPane();
        primaryStage.setScene(new Scene(root, 300, 250));
        primaryStage.show();
    }
}
